/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.isd.seguridad.modelo;

import java.io.Serializable;

/**
 *
 * @author Claudio
 */
public class ProductoFavoritoPK implements Serializable{
      
    private String usuari;      
    private String tippro;    
    private String artcod;
        
    public ProductoFavoritoPK() {
        
    }

    public ProductoFavoritoPK(String usuari, String tippro, String artcod) {
        this.usuari = usuari;
        this.tippro = tippro;
        this.artcod = artcod;
    }

    public String getUsuari() {
        return usuari;
    }

    public void setUsuari(String usuari) {
        this.usuari = usuari;
    }

    public String getTippro() {
        return tippro;
    }

    public void setTippro(String tippro) {
        this.tippro = tippro;
    }

    public String getArtcod() {
        return artcod;
    }

    public void setArtcod(String artcod) {
        this.artcod = artcod;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 11 * hash + (this.usuari != null ? this.usuari.hashCode() : 0);
        hash = 11 * hash + (this.tippro != null ? this.tippro.hashCode() : 0);
        hash = 11 * hash + (this.artcod != null ? this.artcod.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ProductoFavoritoPK other = (ProductoFavoritoPK) obj;
        if ((this.usuari == null) ? (other.usuari != null) : !this.usuari.equals(other.usuari)) {
            return false;
        }
        if ((this.tippro == null) ? (other.tippro != null) : !this.tippro.equals(other.tippro)) {
            return false;
        }
        if ((this.artcod == null) ? (other.artcod != null) : !this.artcod.equals(other.artcod)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "ProductosFavoritosPK{" + "usuari=" + usuari + ", tippro=" + tippro + ", artcod=" + artcod + '}';
    }
    
    
    
    
}
